package com.fit.pages;

import java.util.Date;

import org.apache.tapestry5.ioc.annotations.Inject;

import com.fit.annotations.AdminAccess;
import com.fit.annotations.AnonymousAccess;
import com.fit.annotations.CoachAccess;
import com.fit.annotations.MemberAccess;
import com.fit.services.Authenticator;


/**
 * Start page of application Fitness.
 */

@AdminAccess
@MemberAccess
@CoachAccess


public class Index
{
	
	@Inject
	private Authenticator authenticator;
	
	public Date getCurrentTime() 
	{ 
		return new Date(); 
	}

	public Object onActionFromLogout(){
		authenticator.logout();
		return Index.class;
	}
}
